﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _2112A_2_MES._XiangHe
{
    /// <summary>
    /// 出货检验单表
    /// </summary>
    public class Qcoqc : Entity<int>
    {
        /// <summary>
        /// 行ID
        /// </summary>
        public int? LineId { get; set; }

        /// <summary>
        /// 单据编号
        /// 长度：64
        /// </summary>
        public string? QgcCode { get; set; }

        /// <summary>
        /// 名称
        /// 长度：255
        /// </summary>
        public string? QgcName { get; set; }

        /// <summary>
        /// 表单编号ID
        /// </summary>
        public int? TemplateId { get; set; }

        /// <summary>
        /// 来源单据ID
        /// </summary>
        public int? SourceDocId { get; set; }

        /// <summary>
        /// 来源单据类型
        /// 长度：64
        /// </summary>
        public string? SourceDocType { get; set; }

        /// <summary>
        /// 来源单据编号
        /// 长度：64
        /// </summary>
        public string? SourceDocCode { get; set; }

        /// <summary>
        /// 来源单据行ID
        /// </summary>
        public int? SourceLineId { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        public int? ClientId { get; set; }

        /// <summary>
        /// 客户编码
        /// 长度：64
        /// </summary>
        public string? ClientCode { get; set; }

        /// <summary>
        /// 客户名称
        /// 长度：255
        /// </summary>
        public string? ClientName { get; set; }

        /// <summary>
        /// 批次编码
        /// 长度：255
        /// </summary>
        public string? BatchCode { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public int? ItemId { get; set; }

        /// <summary>
        /// 商品编码
        /// 长度：64
        /// </summary>
        public string? ItemCode { get; set; }

        /// <summary>
        /// 商品名称
        /// 长度：255
        /// </summary>
        public string? ItemName { get; set; }

        /// <summary>
        /// 规格
        /// 长度：500
        /// </summary>
        public string? Specification { get; set; }

        /// <summary>
        /// 单位
        /// 长度：64
        /// </summary>
        public string? UnitOfMeasure { get; set; }

        /// <summary>
        /// 最小数量
        /// </summary>
        public double? QuantityMinCheck { get; set; }

        /// <summary>
        /// 最大数量
        /// </summary>
        public double? QuantityMaxCheck { get; set; }

        /// <summary>
        /// 出库数量
        /// </summary>
        public double? QuantityOut { get; set; }

        /// <summary>
        /// 检测数量
        /// </summary>
        public double? QuantityCheck { get; set; }

        /// <summary>
        /// 未合格数量
        /// </summary>
        public double? QuantityUnqualified { get; set; }

        /// <summary>
        /// 合格率
        /// </summary>
        public double? CrRate { get; set; }

        /// <summary>
        /// 主要原因
        /// 长度：64
        /// </summary>
        public string? MajorReason { get; set; }

        /// <summary>
        /// 次要原因
        /// 长度：64
        /// </summary>
        public string? MinorReason { get; set; }

        /// <summary>
        /// 合格数量
        /// </summary>
        public double? CrQuantity { get; set; }

        /// <summary>
        /// 主要数量
        /// </summary>
        public double? MaQuantity { get; set; }

        /// <summary>
        /// 次要数量
        /// </summary>
        public double? MinQuantity { get; set; }

        /// <summary>
        /// 检测结果
        /// 长度：64
        /// </summary>
        public string? CheckResult { get; set; }

        /// <summary>
        /// 出库日期
        /// </summary>
        public DateTime? OutDate { get; set; }

        /// <summary>
        /// 检测日期
        /// </summary>
        public DateTime? InspectDate { get; set; }

        /// <summary>
        /// 检测员
        /// 长度：64
        /// </summary>
        public string? Inspector { get; set; }

        /// <summary>
        /// 状态
        /// 长度：64
        /// </summary>
        public string? Status { get; set; }

        /// <summary>
        /// 备注
        /// 长度：500
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 创建者
        /// 长度：64
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新者
        /// 长度：64
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
